//
//  RankUserinfoModel.m
//  CoolTennisBall
//
//  Created by Coollang on 2017/7/29.
//  Copyright © 2017年 CoolLang. All rights reserved.
//

#import "RankUserinfoModel.h"

@implementation RankUserinfoModel

+ (instancetype)rankUserInfoModelWithDict:(NSDictionary *)dict {
    RankUserinfoModel *model = [[RankUserinfoModel alloc] initWithDict:dict];
    return model;
}

- (instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]){
        _userName = dict[@"UserInfo"][@"Name"];
        _headIcon = dict[@"UserInfo"][@"Icon"];
        _adress = dict[@"UserInfo"][@"Address"];
        
        _likes = dict[@"Likes"];
        _totalDuration = dict[@"TotalDuration"];
        _totalSwings = dict[@"TotalSwings"];
        _swingWeekRank = dict[@"SwingWeekRank"];
        _swingMonthRank = dict[@"SwingMonthRank"];
        _scoreWeekRank = dict[@"ScoreWeekRank"];
        _scoreMonthRank = dict[@"ScoreMonthRank"];
        _medals = dict[@"Medals"];
    }
    return self;
}

@end
